<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>新闻列表</title>
		<script type="text/javascript"
			src="<%=basePath%>pages/news/js/jquery-1.5.1.min.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>pages/news/js/jquery.quickpaginate.js"></script>
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>pages/news/html_news/style/main.css" media="all" />
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>pages/news/html_news/style/style.css" />
		<script type="text/javascript"
			src="<%=basePath%>pages/news/html_news/js/jquery.easing.1.3.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>pages/news/html_news/js/sprite.js"></script>
		<style>
a:link,a:hover,a:visited {
	color: #015C8A;
}

a.qp_disabled {
	color: #888;
}

.qp_counter {
	margin: 10px;
}
</style>
	</head>

	<body>
		<div class="top">
			<div class="logo"></div>
			<div class="search"></div>
			<div class="english"></div>
			<div class="topmenu">
				<ul id="navigationmenu">
					<li><a class="home" href="<%=basePath%>html_news"></a></li>
			        <li><a class="services" href="<%=basePath%>html_news/list/?newstypeid=1"></a></li>
			        <li><a class="portfolio" href="<%=basePath%>html_news/list/?newstypeid=2"></a></li>
					<li><a class="about" href="<%=basePath%>html_news/summary"></a></li>
				</ul>
			</div>
			<div class="fix"></div>
		</div>

		<div class="center">
			<div class="centertop"></div>
			<div class="centerimg"></div>
			<div class="centerbottom"></div>
			<div class="fix"></div>

			<div class="centercontent">
				<div class="centerleft">
					<div class="navigation_top">
						<div
							style="font-size: 15px; font-weight: bold; color: #F30; margin: 56px 0 16px 0;"></div>
						<c:forEach var="newss" items="${newshot}" begin="0" end="4">
							<ul class="cha_ul">
								<li>
									<a href="<%=basePath%>html_news/listcontent/?news.id=${newss.id}" style="width:160px; text-overflow:ellipsis;overflow:hidden;white-space:nowrap;">${newss.newsTitle }</a>
								</li>
								<li style="color: #666;">
									点击率：${newss.clickRate }
								</li>
							</ul>
						</c:forEach>
					</div>
				</div>
				<div class="centerlist">
					<div class="listtitle">
						<div class="title">
							<img src="<%=basePath%>pages/news/html_news/images/dot1.png"
								width="13" height="15" style="padding: 4px 0 0 2px;" />
							<img src="<%=basePath%>pages/news/html_news/images/title.png"
								width="72" height="17" />
						</div>
						<!-- <span class="route">首页 >  新闻列表 </span> -->
					</div>
					<div class="poster"></div>
					<div class="newslist">
						<div class="cont_part_c">
							<p class="import_t">
								<c:forEach var="newss" items="${newss}" begin="0" end="0">
									${newss.newsType.typeText}
								</c:forEach>
							</p>
							<ul class="cha_ul fenge_ul" id="newslist" style="height: 250px;">
								<c:forEach var="newss" items="${newss}">
									<li>
										<span class="right"><fmt:formatDate
												value="${newss.newsTime }" pattern="yyyy-MM-dd" /> </span><a
											href="<%=basePath%>html_news/listcontent/?news.id=${newss.id}">${newss.newsTitle}</a>
									</li>
								</c:forEach>
							</ul>
							<div class="pages" style="text-align: center;">
							</div>
						</div>
					</div>
				</div>

				<div class="centerright">
					<div class="shortcut_menu"></div>
				</div>
				<div class="fix"></div>
			</div>
		</div>
		<div class="fix"></div>
		<div class="separate">
			<img src="<%=basePath%>pages/news/html_news/images/separatebg.png"
				width="941" height="6" />
		</div>

		<div class="bottom">
			<div class="state"></div>
			<div class="query"></div>
			<div class="querybox"></div>
		</div>
		<script type="text/javascript">
	$( function() {
		$("#newslist li").quickpaginate( {
			perpage :10,
			pager :$(".pages")
		});
	});
</script>
	</body>
</html>
